package com.itheima.a02threadcase2;

public class MyRunnable implements Runnable{
    @Override
    public void run() {
        //书写线程要执行代码
        for (int i = 1; i <= 100; i++){
            Thread thread = Thread.currentThread();
            System.out.println(thread.getName() + " : hello world!");
        }
    }
}
